package com.xs.designs.strategy.di2;

import org.springframework.beans.factory.InitializingBean;

public abstract class AbstractHandler implements InitializingBean {
 
    public  abstract void handler();
    public  abstract StrategyEnum getHandleStrategy();
 
    @Override
    public void afterPropertiesSet() throws Exception {
        HandlerStrategyFactory.registerHandlerStrategy(this);
    }
}